package cn.fintecher.pangolin.service.dataimp.request;

import cn.fintecher.pangolin.common.enums.PublicField;
import cn.fintecher.pangolin.entity.elastic.ExportTemplateItem;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Auther: xiaqun
 * @Description: 修改导出模板请求参数
 * @Date: 10:34 2019/10/16
 */

@Data
public class ModifyExportTemplateRequest {

    @ApiModelProperty(value = "模板ID")
    @NotNull(message = "template.id.is.required")
    private String id;

    @ApiModelProperty(value = "模板名称")
    @NotNull(message = "template.name.is.required")
    private String name;

    @ApiModelProperty(value = "表头起始行")
    @NotNull(message = "template.head.row.is.required")
    private Integer titleStartRow;

    @ApiModelProperty(value = "表头起始列")
    @NotNull(message = "template.head.col.is.required")
    private Integer titleStartCol;

    @ApiModelProperty(value = "数据起始行")
    @NotNull(message = "template.data.row.is.required")
    private Integer dataStartRow;

    @ApiModelProperty(value = "数据起始列")
    @NotNull(message = "template.data.col.is.required")
    private Integer dataStartCol;

    @ApiModelProperty(value = "sheet页数")
    @NotNull(message = "template.sheet.number.is.required")
    private Integer sheetNumber;

    @ApiModelProperty(value = "模板文件ID")
    @NotNull(message = "template.file.is.required")
    private String fileId;

    @ApiModelProperty(value = "配置项")
    @NotNull(message = "template.item.is.required")
    private List<ExportTemplateItem> items;

    @ApiModelProperty(value = "公共字段设置")
    @NotNull(message = "template.public.is.required")
    private PublicField publicField;
}
